import request from '@/utils/request'
// 品牌管理的接口
// http://39.98.123.211:8216/swagger-ui.html

// 获取品牌列表接口
const getTradeMarkList = (page, limit) => {
  return request({
    url: `admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
  })
}

// 新增品牌接口
const postTradeMark = (data) => {
  return request({
    url: `/admin/product/baseTrademark/save`,
    method: 'post',
    data: data
  })
}

// 编辑品牌接口
const editTradeMark = (data) => {
  return request({
    url: '/admin/product/baseTrademark/update',
    method: 'put',
    data: data
  })
}

// 删除品牌接口
const delTradeMark = (id) => {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: 'delete'
  })
}

export { getTradeMarkList, postTradeMark, editTradeMark, delTradeMark }
